package project.menu.mastermenu;

import java.util.ArrayList;

import project.controllers.Controller;
import project.controllers.Helper;
import project.menu.IMenu;
import project.menu.IMenuItem;


public class CreatorMaster implements IMenuItem{
	private static final String name= "Add master";
	private static final String METHOD_NAME ="addMaster";
	private final Integer id= 3;
	private static IMenu submenu;
	private Controller controller=Controller.getInstance();
	

		
	public void setSubmenu(IMenu menu){
		 submenu=menu;
	}
	
	public Integer getId() {
		return id;
	}


	
	public ArrayList<String> action() {
		//addmaster
		String masterName=controller.getMasterName();
		return Helper.setParametrs(METHOD_NAME,masterName);
	}

	
	public String getNameItem() {
		
		return name;
	}

	public IMenu getMenu(){
		return submenu;
	}
}
